home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / mac / Sample Code / QuickTime / QuickTimeIntro / WiredSprites / Clippings / CreateMovieFile.clp / CreateMovieFile.clp.rsrc
MacOS Resource Fork  |  2000-10-06  |  1.7 KB  |  [clpt/drag]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Resource Fork (archive/rsrc).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
56% TrID Mac AppleDouble encoded default
28% TrID TTComp archive compressed (bin-2K) default (weak)
14% TrID MacBinary 1 default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[clpt]
macFileCreator[drag]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 06 98 63 6c 70 74 64 72 | 61 67 01 00 00 00 00 00 |..clptdr|ag......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 06 52 00 00 05 52 00 00 |........|.R...R..|
|00000060| 00 46 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.F......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 13 43 72 65 61 74 | 65 4d 6f 76 69 65 46 69 |...Creat|eMovieFi|
|00000090| 6c 65 2e 63 6c 70 65 2e | 63 6c 70 6c 70 6c 70 70 |le.clpe.|clplplpp|
|000000a0| 70 79 02 00 63 6c 70 74 | 64 72 61 67 01 00 00 00 |py..clpt|drag....|
|000000b0| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 b5 40 ed 90 | 00 00 00 00 00 00 06 98 |.....@..|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 05 2a 09 2f | 2f 20 63 72 65 61 74 65 |.....*./|/ create|
|00000160| 20 61 20 6d 6f 76 69 65 | 20 66 69 6c 65 20 66 6f | a movie| file fo|
|00000170| 72 20 74 68 65 20 64 65 | 73 74 69 6e 61 74 69 6f |r the de|stinatio|
|00000180| 6e 20 6d 6f 76 69 65 0d | 09 6d 79 45 72 72 20 3d |n movie.|.myErr =|
|00000190| 20 43 72 65 61 74 65 4d | 6f 76 69 65 46 69 6c 65 | CreateM|ovieFile|
|000001a0| 28 26 6d 79 46 69 6c 65 | 2c 09 09 09 09 2f 2a 20 |(&myFile|,..../* |
|000001b0| 66 73 73 70 65 63 20 66 | 6f 72 20 74 68 65 20 6d |fsspec f|or the m|
|000001c0| 6f 76 69 65 20 74 6f 20 | 62 65 20 63 72 65 61 74 |ovie to |be creat|
|000001d0| 65 64 20 2a 2f 0d 09 09 | 09 09 09 09 09 46 4f 55 |ed */...|.....FOU|
|000001e0| 52 5f 43 48 41 52 5f 43 | 4f 44 45 28 27 54 56 4f |R_CHAR_C|ODE('TVO|
|000001f0| 44 27 29 2c 09 2f 2a 20 | 63 72 65 61 74 6f 72 20 |D'),./* |creator |
|00000200| 76 61 6c 75 65 20 66 6f | 72 20 74 68 65 20 6e 65 |value fo|r the ne|
|00000210| 77 20 66 69 6c 65 20 2a | 2f 0d 09 09 09 09 09 09 |w file *|/.......|
|00000220| 09 73 6d 53 79 73 74 65 | 6d 53 63 72 69 70 74 2c |.smSyste|mScript,|
|00000230| 09 09 09 2f 2a 20 73 63 | 72 69 70 74 20 69 6e 20 |.../* sc|ript in |
|00000240| 77 68 69 63 68 20 74 68 | 65 20 6d 6f 76 69 65 20 |which th|e movie |
|00000250| 66 69 6c 65 20 73 68 6f | 75 6c 64 20 62 65 20 63 |file sho|uld be c|
|00000260| 72 65 61 74 65 64 20 2a | 2f 0d 09 09 09 09 09 09 |reated *|/.......|
|00000270| 09 6d 79 46 6c 61 67 73 | 2c 09 09 09 09 2f 2a 20 |.myFlags|,..../* |
|00000280| 6d 6f 76 69 65 20 63 72 | 65 61 74 69 6f 6e 20 66 |movie cr|eation f|
|00000290| 6c 61 67 73 20 2a 2f 0d | 09 09 09 09 09 09 09 26 |lags */.|.......&|
|000002a0| 6d 79 52 65 73 52 65 66 | 4e 75 6d 2c 09 09 09 2f |myResRef|Num,.../|
|000002b0| 2a 20 66 69 6c 65 20 72 | 65 66 65 72 65 6e 63 65 |* file r|eference|
|000002c0| 20 66 6f 72 20 6d 6f 76 | 69 65 20 66 69 6c 65 20 | for mov|ie file |
|000002d0| 72 65 74 75 72 6e 20 68 | 65 72 65 20 2a 2f 0d 09 |return h|ere */..|
|000002e0| 09 09 09 09 09 09 26 6d | 79 4d 6f 76 69 65 29 3b |......&m|yMovie);|
|000002f0| 09 09 09 09 2f 2a 20 6e | 65 77 20 6d 6f 76 69 65 |..../* n|ew movie|
|00000300| 20 69 64 65 6e 74 69 66 | 69 65 72 20 72 65 74 75 | identif|ier retu|
|00000310| 72 6e 20 68 65 72 65 20 | 2a 2f 0d 09 69 66 20 28 |rn here |*/..if (|
|00000320| 6d 79 45 72 72 20 21 3d | 20 6e 6f 45 72 72 29 0d |myErr !=| noErr).|
|00000330| 09 09 67 6f 74 6f 20 62 | 61 69 6c 3b 0d 09 0d 09 |..goto b|ail;....|
|00000340| 2f 2f 20 73 65 6c 65 63 | 74 20 74 68 65 20 22 6e |// selec|t the "n|
|00000350| 6f 20 63 6f 6e 74 72 6f | 6c 6c 65 72 22 20 6d 6f |o contro|ller" mo|
|00000360| 76 69 65 20 63 6f 6e 74 | 72 6f 6c 6c 65 72 20 6f |vie cont|roller o|
|00000370| 70 74 69 6f 6e 0d 09 6d | 79 54 79 70 65 20 3d 20 |ption..m|yType = |
|00000380| 45 6e 64 69 61 6e 55 33 | 32 5f 4e 74 6f 42 28 6d |EndianU3|2_NtoB(m|
|00000390| 79 54 79 70 65 29 3b 0d | 09 53 65 74 55 73 65 72 |yType);.|.SetUser|
|000003a0| 44 61 74 61 49 74 65 6d | 28 47 65 74 4d 6f 76 69 |DataItem|(GetMovi|
|000003b0| 65 55 73 65 72 44 61 74 | 61 28 6d 79 4d 6f 76 69 |eUserDat|a(myMovi|
|000003c0| 65 29 2c 0d 09 09 09 09 | 09 26 6d 79 54 79 70 65 |e),.....|.&myType|
|000003d0| 2c 0d 09 09 09 09 09 73 | 69 7a 65 6f 66 28 6d 79 |,......s|izeof(my|
|000003e0| 54 79 70 65 29 2c 0d 09 | 09 09 09 09 6b 55 73 65 |Type),..|....kUse|
|000003f0| 72 44 61 74 61 4d 6f 76 | 69 65 43 6f 6e 74 72 6f |rDataMov|ieContro|
|00000400| 6c 6c 65 72 54 79 70 65 | 2c 0d 09 09 09 09 09 31 |llerType|,......1|
|00000410| 29 3b 0d 09 0d 09 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |);....//|////////|
|00000420| 0d 09 2f 2f 0d 09 2f 2f | 20 63 72 65 61 74 65 20 |..//..//| create |
|00000430| 74 68 65 20 73 70 72 69 | 74 65 20 74 72 61 63 6b |the spri|te track|
|00000440| 20 61 6e 64 20 6d 65 64 | 69 61 0d 09 2f 2f 0d 09 | and med|ia..//..|
|00000450| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 0d 09 0d 09 6d 79 |////////|//....my|
|00000460| 54 72 61 63 6b 20 3d 20 | 4e 65 77 4d 6f 76 69 65 |Track = |NewMovie|
|00000470| 54 72 61 63 6b 28 6d 79 | 4d 6f 76 69 65 2c 0d 09 |Track(my|Movie,..|
|00000480| 09 09 09 09 09 09 28 28 | 6c 6f 6e 67 29 6b 53 70 |......((|long)kSp|
|00000490| 72 69 74 65 54 72 61 63 | 6b 57 69 64 74 68 20 3c |riteTrac|kWidth <|
|000004a0| 3c 20 31 36 29 2c 09 2f | 2a 20 64 69 73 70 6c 61 |< 16),./|* displa|
|000004b0| 79 20 77 69 64 74 68 20 | 69 6e 20 70 69 78 65 6c |y width |in pixel|
|000004c0| 73 20 2a 2f 0d 09 09 09 | 09 09 09 09 28 28 6c 6f |s */....|....((lo|
|000004d0| 6e 67 29 6b 53 70 72 69 | 74 65 54 72 61 63 6b 48 |ng)kSpri|teTrackH|
|000004e0| 65 69 67 68 74 20 3c 3c | 20 31 36 29 2c 09 2f 2a |eight <<| 16),./*|
|000004f0| 20 64 69 73 70 6c 61 79 | 20 68 65 69 67 68 74 20 | display| height |
|00000500| 69 6e 20 70 69 78 65 6c | 73 20 2a 2f 0d 09 09 09 |in pixel|s */....|
|00000510| 09 09 09 09 6b 4e 6f 56 | 6f 6c 75 6d 65 29 3b 09 |....kNoV|olume);.|
|00000520| 09 09 09 09 09 09 2f 2a | 20 76 6f 6c 75 6d 65 20 |....../*| volume |
|00000530| 73 65 74 74 69 6e 67 20 | 6f 66 20 74 68 65 20 74 |setting |of the t|
|00000540| 72 61 63 6b 20 2a 2f 0d | 09 6d 79 4d 65 64 69 61 |rack */.|.myMedia|
|00000550| 20 3d 20 4e 65 77 54 72 | 61 63 6b 4d 65 64 69 61 | = NewTr|ackMedia|
|00000560| 28 6d 79 54 72 61 63 6b | 2c 0d 09 09 09 09 09 09 |(myTrack|,.......|
|00000570| 09 53 70 72 69 74 65 4d | 65 64 69 61 54 79 70 65 |.SpriteM|ediaType|
|00000580| 2c 09 09 2f 2a 20 74 79 | 70 65 20 6f 66 20 6d 65 |,../* ty|pe of me|
|00000590| 64 69 61 20 74 6f 20 63 | 72 65 61 74 65 20 2a 2f |dia to c|reate */|
|000005a0| 0d 09 09 09 09 09 09 09 | 6b 53 70 72 69 74 65 4d |........|kSpriteM|
|000005b0| 65 64 69 61 54 69 6d 65 | 53 63 61 6c 65 2c 09 2f |ediaTime|Scale,./|
|000005c0| 2a 20 6d 65 64 69 61 20 | 74 69 6d 65 20 73 63 61 |* media |time sca|
|000005d0| 6c 65 20 2a 2f 0d 09 09 | 09 09 09 09 09 4e 55 4c |le */...|.....NUL|
|000005e0| 4c 2c 09 09 09 09 09 2f | 2a 20 64 61 74 61 20 72 |L,...../|* data r|
|000005f0| 65 66 2c 20 70 61 73 73 | 20 6e 69 6c 20 74 6f 20 |ef, pass| nil to |
|00000600| 75 73 65 20 74 68 65 20 | 66 69 6c 65 20 74 68 65 |use the |file the|
|00000610| 20 6d 6f 76 69 65 20 77 | 61 73 20 63 72 65 61 74 | movie w|as creat|
|00000620| 65 64 20 69 6e 20 2a 2f | 0d 09 09 09 09 09 09 09 |ed in */|........|
|00000630| 30 29 3b 09 09 09 09 09 | 09 2f 2a 20 64 61 74 61 |0);.....|./* data|
|00000640| 20 72 65 66 20 74 79 70 | 65 2c 20 70 61 73 73 20 | ref typ|e, pass |
|00000650| 6e 69 6c 20 74 6f 20 75 | 73 65 20 74 68 65 20 66 |nil to u|se the f|
|00000660| 69 6c 65 20 74 68 65 20 | 6d 6f 76 69 65 20 77 61 |ile the |movie wa|
|00000670| 73 20 63 72 65 61 74 65 | 64 20 69 6e 20 2a 2f 0d |s create|d in */.|
|00000680| 00 00 00 20 00 00 00 01 | 00 00 00 04 00 00 00 00 |... ....|........|
|00000690| 00 00 00 01 54 45 58 54 | 00 00 01 00 00 00 00 00 |....TEXT|........|
|000006a0| 00 00 00 00 00 00 01 00 | 00 00 06 52 00 00 05 52 |........|...R...R|
|000006b0| 00 00 00 46 07 ac 3e 30 | 02 22 00 00 00 1c 00 46 |...F..>0|.".....F|
|000006c0| 00 01 54 45 58 54 00 00 | 00 12 64 72 61 67 00 00 |..TEXT..|..drag..|
|000006d0| 00 1e 01 00 ff ff 00 00 | 00 00 00 a4 81 8c 00 80 |........|........|
|000006e0| ff ff 00 00 05 2e 00 a4 | 80 6c |........|.l |
+--------+-------------------------+-------------------------+--------+--------+